#ifndef RECTANGLE_H_
#define RECTANGLE_H_

#include "physics/area.h"

/**
* A rectangle area.
* 
* @author dfoelber
**/
class RectangleArea : public Area
{
public:
	// Constructors
	RectangleArea(Path* path);
	RectangleArea(double x, double y, double width, double height);
	
	// Destructor
	virtual ~RectangleArea();
	
	// If this area intersects another area.
	virtual int Intersects( Area* area, double sourceX, double sourceY, double otherX, double otherY );
	
	virtual double GetX();
	virtual double GetY();
	virtual double GetWidth();
	virtual double GetHeight();
	
private:
	double				x;
	double				y;
	double				width;
	double				height;
};

#endif /*RECTANGLE_H_*/
